<?php /* Smarty version 2.6.16, created on 2009-04-25 12:24:09
         compiled from RandomPoll.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'RandomPoll.html', 7, false),array('function', 'url', 'RandomPoll.html', 16, false),array('function', 'module', 'RandomPoll.html', 21, false),array('modifier', 'escape', 'RandomPoll.html', 24, false),)), $this); ?>
<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
            <table style="width: 100%;cursor:pointer;padding:10px;" class="border4" cellpadding="0" cellspacing="0" border="0" onclick="SwitchMenu('sub2','hidetext2')">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td style="font-weight:bold;text-align:left;" class="color2"><?php echo smarty_function_language(array('text' => 'random_polls'), $this);?>
</td>
                    <td style="text-align:right;padding-right:4px;"><span class="cur" id="hidetext2">[-]</span></td>
                </tr>
            </table>
            <div class="submenu" id="sub2">
                <table style="width:100%;height:270px;" cellspacing="0" cellpadding="0">
<?php if ($this->_tpl_vars['aItem']): ?>
                    <tr>
                        <td style="font-size:7pt;vertical-align:top;">
                        <form method="post" action="<?php echo smarty_function_url(array('link' => 'public.poll.vote','id' => $this->_tpl_vars['aItem']['id']), $this);?>
" style="margin:0px;">
                        <br />
                        <div style="font-size:9pt;font-weight:bold;" class="color">
                        <div style="text-align:center;">
                        <a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aItem']['user']), $this);?>
">
                        <?php echo smarty_function_module(array('module' => 'Account','component' => 'Avatar','sUser' => $this->_tpl_vars['aItem']['user'],'iSize' => 120,'class' => 'pic1','onmouseover' => "showInfo5('".($this->_tpl_vars['aItem']['user'])."', '', '');this.className='pic2';",'onmouseout' => "this.className='pic1';return nd();"), $this);?>

                        </a>
                        <br/>
                        <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['poll'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

                        </div>
			<?php if ($this->_tpl_vars['bVoted']): ?>                        
   				<div style="padding-left:10px;font-size:9pt;font-weight:normal;" class="color"><br />
    				<?php echo smarty_function_language(array('text' => 'you_have_already_voted_on_this_poll'), $this);?>
 <br /><br /><b><?php echo smarty_function_language(array('text' => 'your_answer'), $this);?>
:</b><br /> <?php echo ((is_array($_tmp=$this->_tpl_vars['bVoted'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<br />
    			</div>			
			<?php else: ?>                        
                        <div style="padding-left:10px;"><br/>
            <?php if ($this->_tpl_vars['aItem']['o1'] != ''): ?><div><input type="radio" name="answer" class="pollinput" value="1" style="vertical-align:middle;" /><?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['o1'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</div><?php endif; ?>
            <?php if ($this->_tpl_vars['aItem']['o2'] != ''): ?><div><input type="radio" name="answer" class="pollinput" value="2" style="vertical-align:middle;" /><?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['o2'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</div><?php endif; ?>
            <?php if ($this->_tpl_vars['aItem']['o3'] != ''): ?><div><input type="radio" name="answer" class="pollinput" value="3" style="vertical-align:middle;" /><?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['o3'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</div><?php endif; ?>
            <?php if ($this->_tpl_vars['aItem']['o4'] != ''): ?><div><input type="radio" name="answer" class="pollinput" value="4" style="vertical-align:middle;" /><?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['o4'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</div><?php endif; ?>
                        </div>          
                        <div style="padding:5px;text-align:center;">
                            <input type="submit" value=" <?php echo smarty_function_language(array('text' => 'vote'), $this);?>
 " />
                        </div>
            <?php endif; ?>
                        </div>
                        </form>
                    </td>
                    </tr>
            <?php if ($this->_tpl_vars['bVoted']): ?>
                    <tr>
                        <td style="vertical-align:top;">
                            <div style="font-size:7pt;text-align:right;">
                                <a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.poll.view','id' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'view_polls_results'), $this);?>
 ]</a>
                            </div>
                        </td>
                    </tr>
            <?php endif; ?>
            <?php else: ?>
                    <tr>
                        <td style="vertical-align:top;">
                        <br />
                            <div class="message_info">
                            <?php echo smarty_function_language(array('text' => 'there_are_no_polls_yet'), $this);?>

                            </div>
                        </td>
                    </tr>
            <?php endif; ?>
                    <tr>
                        <td style="vertical-align: bottom;">
                        <br />
                        <div style="font-size:7pt;text-align:right;">
                            <a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.account.submit.add-poll'), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'add_your_poll'), $this);?>
 ]</a>
                        </div>
                        </td>
                    </tr>
                </table>
            </div>
        </td>
    </tr>
</table>